home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 8: LINUX Games
/
Linux Cubed Series 8 - LINUX Games.iso
/
games
/
x11
/
networke
/
xfirepow.000
/
xfirepow
/
xfirepower-0.84
/
client
/
libsprite
/
scale.c
< prev
next >
Wrap
C/C++ Source or Header
|
1995-05-23
|
292b
|
18 lines
#include "allincludes.h"
void
W_TranslatePoints(window, x, y)
int *x, *y;
W_Window window;
{
struct window *win;
win = W_Void2Window(window);
if (win->type == WIN_TEXT) {
*y = (*y - MENU_PAD) / W_Textheight;
*x = (*x - MENU_PAD) / W_Textwidth;
}
return;
}